<template>
	<view>
		<view v-if="isLoad" class="login">
			<MpWeixin v-if="isMpWeixinAuth" @syncRefresh="onGetUserInfoSuccess" />
		</view>
		
	</view>
</template>

<script>
	import Main from './components/main'
	import MpWeixin from './components/mp-weixin'
	import SettingKeyEnum from '@/common/enum/setting/Key'
	import SettingModel from '@/common/model/Setting'



	export default {
		components: {
			Main,
			MpWeixin
		},

		data() {
			return {
				show: false,
				// 数据加载完成 [防止在微信小程序端onLoad和view渲染同步进行]
				isLoad: false,
				// 是否显示微信小程序授权登录
				isMpWeixinAuth: true,
			}
		},

		/**
		 * 生命周期函数--监听页面加载
		 */
		onLoad(options) {
			this.isLoad = true

		},

		methods: {
			// 获取到用户信息的回调函数
			onGetUserInfoSuccess(result) {
				
			},
			cancelEventHander() {

			},
			okClickEventHander() {

			}

		}
	}
</script>

<style lang="scss" scoped>

</style>